package framework.view.components.button
{
import flash.display.Sprite; Sprite;

public class LabelButton extends CommonButton
{
	public function LabelButton()
	{
		super();
		
		outSkinRef = "flash.display.Sprite";
		downSkinRef = "flash.display.Sprite";
		overSkinRef = "flash.display.Sprite";
        disableSkinRef = "flash.display.Sprite";
	}
	//==========================================================================
	//  Overridden methods: CommonButton
	//==========================================================================
	override public function updateTextFormat():void
	{
		labelTF.defaultTextFormat = format;
		labelTF.setTextFormat(format);
		labelTF.height = labelTF.textHeight + 4;
		labelTF.width = this.buttonWidth;
		labelTF.y = (this.buttonHeight - labelTF.height) / 2;
	}
}
}